package cn.tb.ymcc.exception;

import lombok.Data;
import org.springframework.web.bind.MethodArgumentNotValidException;

@Data
public class GlobleException extends RuntimeException{

    private String code;
    public GlobleException(String message) {
        super(message);
    }

    public GlobleException(String message, String code) {
        super(message);
        this.code = code;
    }

}
